<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<s:action name="getLoginUser" namespace="/"></s:action>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-fluid">
      <div style="margin-left: 30px;" class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index.jsp" style="font-size:12;">需求开发管理平台</a>
      </div>
      <!--  
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="index.jsp">HomePage</a></li>
          <li><a href="selectAllRequireAndDevelop.action">Overview</a></li>
          <li><a href="dataAnalysis.jsp">Analytics</a></li>
          <li><a href="logout.jsp">logout</a></li>
          <li><a>当前用户:<%=(String)session.getAttribute("username")%></a>
          </li>
        </ul>
        <form class="navbar-form navbar-right">
          <input type="text" class="form-control" placeholder="Search...">
        </form>
      </div>
      -->
      
      <!-- Split button -->
      
      <div id="navbar" class="nav navbar-nav navbar-right navbar-collapse collapse" style="margin-top:10px;padding-right:30px;">
      	  <!-- 
	      <div class="btn-group">
			  <button type="button" class="btn btn-default">信息总览</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllRequireAndDevelop.action">需求与开发总览</a></li>
			    <li><a href="dataAnalysis.jsp">数据分析</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">需求管理</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllRequirement.action">所有需求信息</a></li>
		            <% 
		            if(((String)session.getAttribute("username")).equals("admin") || ((String)session.getAttribute("username")).equals("xuqiu")){ %>
		            <li><a href="addRequirement.jsp">添加需求</a></li>
		          <%} %>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">开发管理</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllDevelopment.action">所有开发信息</a></li>
           		<li><a href="remainIdList.action">待处理开发信息</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">大客户项目</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllBigConsumer.action">所有大客户项目查询</a></li>
            	<li><a href="addBigConsumer.jsp">添加大客户项目</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">营销中项目</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			     <li><a href="selectAllMarketProject.action">所有营销中项目查询</a></li>
            	 <li><a href="addMarketProject.jsp">添加营销中项目</a></li>
			  </ul>
		  </div>
		   -->
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">当前用户:<%=(String)session.getAttribute("username")%></button>
			  <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="logout.jsp">退出</a></li>
			  </ul>
		  </div>
      </div>    
    </div>
</nav>